{include file="header.html"}
<div id="rightTop">
    <p>活动</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
        <li><a class="btn1" href="index.php?app=ad&amp;act=add">{$lang.add}</a></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="ad" />
                <input type="hidden" name="act" value="index" />
                {$lang.title}:
                <input class="queryInput" type="text" name="title" value="{$query.title|escape}" />
               	 页面:
                <select class="querySelect" id="pages" name="pages">
                <option value="">请选择</option>
                <!--{foreach from=$page_index item=page}-->
                <option value="{$page.d_value}" {if $query.pages == $page.d_value}selected{/if}>{$page.d_key}</option>
                <!--{/foreach}-->
                </select>
                                           位置:
                <select class="querySelect" id="position" name="position">
                <option value="">请选择</option>
                <!--{foreach from=$position_index item=position}-->
                <option value="{$position.d_value}" {if $query.position == $position.d_value}selected{/if}>{$position.d_key}</option>
                <!--{/foreach}-->
                </select>
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
        </form>
    </div>
    <div class="fontr">
        {include file=page.top.html}
    </div>
    <div class="clear:both;"></div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $articles}-->
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
            <td align="left">{$lang.title}</td>
            <td>{$lang.page}</td>   
            <td>{$lang.position}</td>    
            <td>{$lang.sort_order}</td>
            <td>{$lang.is_show}</td>
            <td>{$lang.handler}</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$articles item=article}-->
        <tr class="tatr2">
            <td class="firstCell"><!--{if !$article.code}--><input type="checkbox" class="checkitem" value="{$article.ad_tid}"/><!--{/if}--></td>
            <td>{$article.title|escape}</td>
            <td>{$article.dpage|escape}</td>
            <td>{$article.dposition|escape}</td>
            <td><!--{if !$article.code}--><span ectype="inline_edit" fieldname="sort_order" fieldid="{$article.ad_tid}" datatype="pint" maxvalue="255" class="editable">{$article.sort_order}</span><!--{/if}--></td>
            <td>
                   <!-- {if $article.is_show} -->
            <img src="{res file=style/images/positive_enabled.gif}" ectype="inline_edit" fieldname="is_show" fieldid="{$article.ad_tid}" fieldvalue="1" title="{$lang.editable}"/>
            <!--{else}-->
            <img src="{res file=style/images/positive_disabled.gif}" ectype="inline_edit" fieldname="is_show" fieldid="{$article.ad_tid}" fieldvalue="0" title="{$lang.editable}"/>
            <!-- {/if} -->
            
            </td>
            <td><a href="index.php?app=ad&amp;act=edit&amp;id={$article.ad_tid}">{$lang.edit}</a>
                <!--{if !$article.code}-->|
                <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=ad&amp;act=drop&amp;id={$article.ad_tid}');">{$lang.drop}</a><!--{/if}--></td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $articles}-->
    <div id="dataFuncs">
        <div class="pageLinks">
            {include file=page.bottom.html}
        </div>
        <div id="batchAction" class="left paddingT15">
            &nbsp;&nbsp;
            <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=ad&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
            &nbsp;&nbsp;
            <!--<input class="formbtn batchButton" type="button" value="lang.update_order" name="id" presubmit="updateOrder(this);" />-->
        </div>
        <div class="clear:both;"></div>
    </div>
    <div class="clear"></div>
    <!--{/if}-->
</div>
{include file="footer.html"}
